package com.fuyo.app.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    private static Logger logger = LoggerFactory.getLogger(TestController.class);

    @RequestMapping
    public String init(
            @RequestParam Integer id
    ) {

        logger.info("test:{}", id);
        return "1234";
    }


    @RequestMapping("/test")
    public String init1(
            @RequestParam Integer id
    ) {

        logger.info("test:{}", id);
        return "1234";
    }
}
